package com.zwy.domain.response;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author zwy
 * @version 1.0
 * @description: IpResult
 * @date 2025/9/18 20:10
 */
@Data
public class IpResult<T> implements Serializable {

    private Integer code;
    private String msg;
    private T data;

    public boolean isSuccess() {
        return Objects.nonNull(this.code) && this.code == 0;
    }
}